(()=>{
  var ConfigMap = {
    "www.douyu.com": {
      form: "#js-player-asideMain .Chat",
      msgInput: "#js-player-asideMain .ChatSend-txt",
      sendBtn: "#js-player-asideMain .ChatSend-button",
    },
    "www.zhanqi.tv": {
      form: "#js-chat-control-panel > .room-chat-notice-layer",
      msgInput: ".js-chat-msg-input",
      sendBtn: "a.send-btn.js-chat-msg-btn",
    },
  };

  const $ = (selector, doc = document) => doc.querySelector(selector);

  var test = (configMap) => {
    const {
      host,
    } = window.location;
    const config = configMap[host];
    Object.keys(config).forEach(key => {
      if(!$(config[key])){
        console.log(`缺少节点:${key}`);
      }
    });
  };

  test(ConfigMap);
})();